﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Workships/Workship.Master" AutoEventWireup="true"
    CodeBehind="Default.aspx.cs" Inherits="ExpertMIS.Workships.Default" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .unselected
        {
            color: Black;
            font-size: 9pt;
            font-family: 宋体;
            background-image: translate;
        }
        .selected
        {
            color: White;
            font-size: 10pt;
            font-weight: bold;
            font-family: 宋体;
            background-color: blue;
        }
        a
        {
            text-decoration: none;
        }
        .menu-item
        {
            height: 26px;
            padding-left: 40px;
            text-align: left;
        }
    </style>

    <script type="text/javascript">
        var lastOne = null;
        function chooseFeature(obj) {
            if (lastOne != null) {
                lastOne.removeClass("selected");
                lastOne.addClass("unselected");
            }
            lastOne = $(obj);
            lastOne.removeClass("unselected");
            lastOne.addClass("selected");
        }
    </script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div style="float: left; border: #176b9d 1px solid; width: 188px; height: 730px;
        text-align: left; overflow: hidden; background-color: #f6f9fe;">
        <div style="clear: both; height: 39px; text-align: center; background-image: url('../imgs/forums/workships.gif');
            border-bottom: #9ab0c7 1px solid;">
        </div>
        <div style="clear: both; text-align: center; height: auto;">
            <img src="../imgs/forums/tool1.gif" />
            <div class="menu-item">
                <a href="UserProfile.aspx" target="frameWorkship" onclick="chooseFeature(this.firstChild);">
                    <span class="unselected">我的信息</span></a>
            </div>
            <div class="menu-item">
                <a href="MyPosts.aspx" target="frameWorkship" onclick="chooseFeature(this.firstChild);">
                    <span class="unselected">我的问题</span></a>
            </div>
            <div class="menu-item">
                <a href="#" target="frameWorkship" onclick="return false;" disabled="disabled">
                    <span class="unselected">站内消息</span></a>
            </div>
        </div>
        <div style="clear: both; text-align: center;">
            <img src="../imgs/forums/tool2.gif" />
            <div class="menu-item">
                <a href="PostQuestion.aspx" target="frameWorkship" onclick="chooseFeature(this.firstChild);">
                    <span class="unselected">我要提问</span></a>
            </div>
            <% if (CurrentUserIsExpert)
               {%>
            <div class="menu-item">
                <a href="PostFAQ.aspx" target="frameWorkship" onclick="chooseFeature(this.firstChild);">
                    <span class="unselected">发布常见问题</span></a>
            </div>
            <%}%>
            <div class="menu-item">
                <a href="AskForMePosts.aspx" target="frameWorkship" onclick="chooseFeature(this.firstChild);">
                    <span class="unselected">我收到的问题</span></a>
            </div>
            <div class="menu-item">
                <a href="ReplyByMePosts.aspx" target="frameWorkship" onclick="chooseFeature(this.firstChild);">
                    <span class="unselected">我回答的问题</span></a>
            </div>
            <div class="menu-item">
                <a href='../LogoutAction.ashx'>
                    <span class="unselected">退出</span></a>
            </div>
        </div>
    </div>
    <div style="float: right; border: #176b9d 1px solid; width: 750px; height: 730px;">
        <iframe name="frameWorkship" id="frameWorkship" style="border: 0px; background-color: White;
            width: 746px; height: 730px; overflow: scroll;" frameborder="0"></iframe>
    </div>
</asp:Content>
